package cn.ad.server.persistence.dao;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import cn.ad.server.domain.ad.PlatformSizeMap;

@Component
public interface PlatformSizeMapDao {
	
	@Results(value = { @Result(column = "id", property = "id", id = true),
			@Result(column = "platform_id", property = "platformId"),
			@Result(column = "size_id", property = "sizeId"),
			@Result(column = "create_time", property = "createTime"),
			@Result(column = "update_time", property = "updateTime") })
	@Select("select * from platform_size_map ")
	public List<PlatformSizeMap> findAll();

	@Results(value = { @Result(column = "id", property = "id", id = true),
			@Result(column = "platform_id", property = "platformId"),
			@Result(column = "size_id", property = "sizeId"),
			@Result(column = "create_time", property = "createTime"),
			@Result(column = "update_time", property = "updateTime") })
	@Select("select * from platform_size_map where id = #{value}")
	public List<PlatformSizeMap> findAfterTime(String warmUpTime);

}
